/**
 * Bestpay.com.cn Inc.
 * Copyright (c) 2011-2019 All Rights Reserved.
 */
package com.suxiaoxiao.springbootlearn.designpattern.strategypattern.test;

import com.suxiaoxiao.springbootlearn.designpattern.strategypattern.Duck;
import com.suxiaoxiao.springbootlearn.designpattern.strategypattern.behaviorimpl.fly.FlyRocketPowered;
import com.suxiaoxiao.springbootlearn.designpattern.strategypattern.duck.MallardDuck;
import com.suxiaoxiao.springbootlearn.designpattern.strategypattern.duck.ModelDuck;

/**
 * test
 *
 * @author zhaorongzhang
 * @version MiniDuckSimulator.java, v 0.1 2019/12/28 3:19 下午 zhaorongzhang Exp $$
 */
public class MiniDuckSimulator {

    public static void main(String[] args) {
//        Duck mallard = new MallardDuck();
//        mallard.performFly();
//        mallard.performQuack();

        Duck modelDuck = new ModelDuck();
        modelDuck.performFly();
        modelDuck.setFlyBehavior(new FlyRocketPowered());
        modelDuck.performFly();
    }

}